﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HpMpPoint
{

    private float Hp;
    private float MaxHp;
    private float Mp;
    private float MaxMp;

    public float getHp()
    {
        return Hp;
    }

    public float getHpMax()
    {
        return MaxHp;
    }

    public float getMp()
    {
        return Hp;
    }

    public float getMpMax()
    {
        return MaxHp;
    }

    public void setHp(float hp)
    {
        Hp = Math2.clampFloat(hp, 0, MaxHp);
    }

    public void setHpMax(float hp)
    {
        MaxHp = hp;
    }
    public void setMp(float mp)
    {
        Mp = Math2.clampFloat(mp, 0, MaxMp);
    }

    public void setMpMax(float mp)
    {
        MaxMp = mp;
    }
}